package com.java.demo.Service;

import com.java.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserService2 {
    @Autowired
    @Qualifier("user1")
    User user2 ;

    public void say() {
        System.out.println(user2.toString());
    }
}
